package com.thon.entity.system;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.thon.entity.util.IdEntity;

/**
 * @author manpiaoyi
 * @mail manpiaoyi@126.com
 * @date 2014-10-19
 * @description
 */
@Entity
@Table(name = "links")
@JsonIgnoreProperties(ignoreUnknown = true)
public class Links extends IdEntity {
	
	private static final long serialVersionUID = -2882541081318874188L;
	private String linksName;
	private String linksUrl;
	private SystemDicData linksType;
	private SystemDicData httpsMethod;
	private Integer sort;
	private String description;
	
	public String getLinksName() {
		return linksName;
	}
	public void setLinksName(String linksName) {
		this.linksName = linksName;
	}
	
	public String getLinksUrl() {
		return linksUrl;
	}
	public void setLinksUrl(String linksUrl) {
		this.linksUrl = linksUrl;
	}
	
	@ManyToOne(cascade = CascadeType.MERGE)
	@JoinColumn(name="links_type", nullable = false)
	@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
	public SystemDicData getLinksType() {
		return linksType;
	}
	public void setLinksType(SystemDicData linksType) {
		this.linksType = linksType;
	}	
	
	public Integer getSort() {
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	@ManyToOne(cascade = CascadeType.MERGE)
	@JoinColumn(name="http_method", nullable = false)
	@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
	public SystemDicData getHttpsMethod() {
		return httpsMethod;
	}
	public void setHttpsMethod(SystemDicData httpsMethod) {
		this.httpsMethod = httpsMethod;
	}
	
	


	
	
}
